package demo2;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-08-08
 * Time: 12:42
 */
public class TestDemo5 {

    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("test1.txt")){
            PrintWriter printWriter = new PrintWriter(outputStream);
            printWriter.println("helllp");
            printWriter.flush();
        }catch(IOException e){
            e.printStackTrace();
        }
    }

}
